#include <stdio.h>
#include<string.h>
int main(void){
	char ch[96];
        char result[96];
        printf("------------------Please enter the string--------------\n");
        scanf("%s", ch);
        FILE *pFile = fopen("/home/xingzhen/testone/homework4/sm4/test","rb+");
        fwrite(ch,strlen(ch),1,pFile);
	fseek(pFile,0,SEEK_SET);	
	fread(result,strlen(ch),1,pFile);
        printf("---------------successful ,the content----------------\n");
        printf("%s\n",result);
        return 0;
    }
